package wang.lx.mybatis.shiro;

import org.apache.shiro.authc.HostAuthenticationToken;
import org.apache.shiro.authc.RememberMeAuthenticationToken;

import lombok.Setter;

@Setter
public class JwtAuthenticationToken implements HostAuthenticationToken, RememberMeAuthenticationToken {

    private String jwtToken;
    private boolean rememberMe;
    private String host;


    @Override
    public Object getPrincipal() {
        return jwtToken;
    }

    @Override
    public Object getCredentials() {
        return jwtToken;
    }

    @Override
    public boolean isRememberMe() {
        return rememberMe;
    }

    @Override
    public String getHost() {
        return host;
    } 
}